package com.jt.demo10;


import com.jt.demo10.config.SpringConfig;
import com.jt.demo10.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMvc {
    public static void main(String[] args) {
        ApplicationContext Context =
                new AnnotationConfigApplicationContext(SpringConfig.class);
        Context.getBean(UserController.class).addUser();
    }
}
